Use GitHub App token instead of PAT in update workflows - #1702
Open
Kaniska244 wants to merge 1 commit into
Open
Conversation
Kaniska244
marked this pull request as ready for review
August 3, 2026 15:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the GitHub Actions workflows for documentation, AWS CLI completer scripts, and .NET install script automation. The main goal is to improve security by replacing the use of a personal access token (PAT) with a GitHub App token for authentication, and to reduce workflow permissions to the minimum required.
Authentication and Permissions Improvements:
secrets.PATwith a GitHub App token generated via theactions/create-github-app-token@v2action for all workflows (update-documentation.yml,update-aws-cli-completer-scripts.yml, andupdate-dotnet-install-script.yml). The App ID and private key are now sourced from devcontainers organization variables and secrets. [1] [2] [3]GITHUB_TOKENenvironment variable in the PR creation steps to use the newly generated GitHub App token instead of the PAT. [1] [2] [3]contents: writeandpull-requests: writetocontents: read, following the principle of least privilege. [1] [2] [3]Workflow Steps Updates:
Prerequisites:
devcontainers-repos-automationGitHub App registered on the org and installed ondevcontainers/features(Contents R/W, Pull requests R/W, Issues R/W, Metadata R).DEVCONTAINERS_REPO_AUTOMATION_IDand org secretDEVCONTAINERS_REPO_AUTOMATION_PRIVATE_KEYadded, scoped to this repo.These changes enhance workflow security and align with GitHub's best practices for automation and token management.